package JavaSE.Class11.Demo;

public class Test {


    public static void main(String[] args) {
        Duck duck=new Duck("TLY ",4);
        Dog dog=new Dog("Dog",5);
        Fish fish=new Fish("Fish",6);
        Behavior.fly(duck);
        Behavior.run(duck);
        Behavior.run(dog);
        Behavior.swim(duck);
        Behavior.swim(dog);
        Behavior.swim(fish);
        Behavior.run(new Robot());
    }
}
